import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        component: () => import('@/views/Prepare/index.vue'),
        redirect: 'prepare',
        children: [{
            path: '',
            name: 'index',
            meta: []
        },
        {
            path: 'index',
            component: () => import('@/views/Index/index.vue'),
            name:'index',
            meta: {
              title: '{{menu}}'
            }
        },
        {
            path: 'prepare',
            component: () => import('@/views/Prepare/index.vue'),
            name:'prepare',
            meta: {
              title: '{{menu}}'
            }
        },]
    }
]
const router = new VueRouter({
  //hash  history
  mode: "history",
  base: process.env.BASE_URL,
  routes
})

export default router